﻿import QtQuick.Controls.Styles 1.4

import QtQuick 2.2
import QtQuick.Layouts 1.1
import QtQuick.Controls 1.2

//自定义单选按钮
RadioButton {
      id: control
      style: RadioButtonStyle {
          indicator: Rectangle {
                  implicitWidth: 16
                  implicitHeight: 16
                  radius: 9
                  border.color: control.activeFocus ? "darkblue" : "gray"
                  border.width: 1
                  Rectangle {
                      anchors.fill: parent
                      visible: control.checked
                      color: "#555"
                      radius: 9
                      anchors.margins: 4
                  }
          }

            label: Text {
                text: control.text
                opacity: enabled ? 1.0 : 0.3
                color: "#d4d5d6"
                verticalAlignment: Text.AlignVCenter
            }
      }
}
